package com.dengqi.mymodule.activity.glide.activity;

import android.os.Bundle;
import android.widget.GridView;

import com.dengqi.mymodule.BaseActivity;
import com.dengqi.mymodule.R;
import com.dengqi.mymodule.activity.glide.adapter.GridPicAdapter;

/**
 * 图片下限
 * glide 格莱德
 * guide 盖德
 * gradle 格瑞德
 * Created by dell on 2018/6/20
 */
public class GlideListActivity extends BaseActivity {

    //http://t1.mmonly.cc/uploads/tu/201806/9999/3f81dac4fe.jpg;
    //http://t1.mmonly.cc/uploads/tu/201608/155/dj1ju5h0ihi.jpg;
    //http://t1.mmonly.cc/uploads/tu/201703/19/153.jpg
    String url = "http://pics.sc.chinaz.com/files/pic/pic9/202004/zzpic24592.jpg";
    GridView mGridView;
    GridPicAdapter mAdapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_glide_list);

        mGridView = findViewById(R.id.gridView);
        mAdapter = new GridPicAdapter(this, url);
        mGridView.setAdapter(mAdapter);

    }


}
